{% extends "base.html" %}
 
{% block mainbody %}<p>继承了 base.html 文件</p>
{% endblock %}

{% if i == 1 %}
    <p> --- 1</p>
    {% else %}
    <p> --- 0 </p>
{% endif %}

